package com.coldchain.cys.enums;


/**
 * 金额操作类型
 * @author Administrator
 *
 */
public enum HandleTypeEnum {
	
	cash(1,"提现操作"),
	order(2,"订单收入"),
	cash_reject(3,"提现驳回");
	
	private Integer id ;
	private String name ; 
	
	private HandleTypeEnum(Integer id,String name) {
		this.id = id ;
		this.name = name;  
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static String getName(Integer id){
		String str="";
		for(HandleTypeEnum o:HandleTypeEnum.values()){
			if(id.equals(o.getId())){
				str= o.getName();
				break;
			}
		}
		return str;
	}
}
